package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.Attendperiod;

public abstract class BaseAttendperiod implements Serializable {

	public BaseAttendperiod() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseAttendperiod(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseAttendperiod(String id, String attpYearmonth, Integer attpStatus) {
		hashCode = 0x80000000;
		setId(id);
		setAttpYearmonth(attpYearmonth);
		setAttpStatus(attpStatus);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getAttpYearmonth() {
		return attpYearmonth;
	}

	public void setAttpYearmonth(String attpYearmonth) {
		this.attpYearmonth = attpYearmonth;
	}

	public Integer getAttpStatus() {
		return attpStatus;
	}

	public void setAttpStatus(Integer attpStatus) {
		this.attpStatus = attpStatus;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Attendperiod))
			return false;
		Attendperiod attendperiod = (Attendperiod) obj;
		if (null == getId() || null == attendperiod.getId())
			return false;
		else
			return getId().equals(attendperiod.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public static String REF = "Attendperiod";
	public static String PROP_ATTP_YEARMONTH = "attpYearmonth";
	public static String PROP_ATTP_STATUS = "attpStatus";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private String attpYearmonth;
	private Integer attpStatus;

}
